package org.example.supplier;

import java.util.Random;
import java.util.function.BiConsumer;
import java.util.function.Supplier;

public class Test01 {

    public static void main(String[] args) {

        //() -> T

        Supplier<Double> doubleSupplier = ()-> {
           return new Random(10).nextDouble();
        } ;


        System.out.println(doubleSupplier.get());

        Supplier<String> res = ()->{
          return "x";
        } ;


        System.out.println(res.get());




    }
}
